-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Parser.create_snapshot_for_diagnostic
instead of Parser.clone()
#95068
Use Parser.create_snapshot_for_diagnostic
instead of Parser.clone()
#95068
Conversation
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
self.create_snapshot_for_diagnostic
instead of self.clone()
Parser.create_snapshot_for_diagnostic
instead of Parser.clone()
r? @rust-lang/compiler |
r? @davidtwco @bors r+ |
📌 Commit 201a860 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1bfe40d): comparison url. Summary: This benchmark run did not return any relevant results. 1 results were found to be statistically significant but too small to be relevant. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
…gnostic-in-rustc-expand, r=Dylan-DPC Use `create_snapshot_for_diagnostic` instead of `clone` for `Parser` Use [`create_snapshot_for_diagnostic`](https://github.com/rust-lang/rust/blob/cd119057160cedea245aa2679add56723f3dc784/compiler/rustc_parse/src/parser/diagnostics.rs#L214-L223) I implemented in rust-lang#94731 instead of `clone` to avoid duplicate unclosed delims errors being emitted when the `Parser` is dropped. I missed this one in rust-lang#95068.
…ostic-in-rustc-expand, r=Dylan-DPC Use `create_snapshot_for_diagnostic` instead of `clone` for `Parser` Use [`create_snapshot_for_diagnostic`](https://github.com/rust-lang/rust/blob/cd119057160cedea245aa2679add56723f3dc784/compiler/rustc_parse/src/parser/diagnostics.rs#L214-L223) I implemented in rust-lang#94731 instead of `clone` to avoid duplicate unclosed delims errors being emitted when the `Parser` is dropped. I missed this one in rust-lang#95068.
Use
create_snapshot_for_diagnostic
I implemented in #94731 instead ofself.clone()
to avoid duplicate unclosed delims errors being emitted when theParser
is dropped.